﻿
    using System;
    using System.Data;
    using System.Data.SqlClient;
    using System.Collections;
    using System.Collections.Generic;
    using FShop.DAL;

namespace FShop.BAL{

    ///<summary>
    ///The Class Provides methods for object operations. 
    ///</summary>
    ///<remarks>
    ///Changes to this file may cause incorrect behavior and will be lost if  the code is regenerated.
    ///Update the <see cref="Comments_BAL"/> class if you need to add or change some functionality
    ///</remarks>
    public class Comments_BAL  {

        #region Public Methods
		public static List<Comments> GetList_Comments()
		{
		   Comments_DAL obj = new Comments_DAL();
		   return obj.GetList_Comments();
		}

		public static DataTable Get_CommentsAsPaging(int pageIndex,int pageSize,string sSortColumn,string sFields,string sWhere,string sGroupBy)
		{
		   Comments_DAL obj = new Comments_DAL();
		   if (string.IsNullOrEmpty(sSortColumn)) sSortColumn = "";
		   if (string.IsNullOrEmpty(sWhere)) sWhere = "";
		   if (string.IsNullOrEmpty(sGroupBy)) sGroupBy = "";
		   if (string.IsNullOrEmpty(sFields)) sFields = "";
		   return obj.Get_CommentsAsPaging( pageIndex, pageSize, sSortColumn, sFields, sWhere, sGroupBy);
		}

		public static DataTable Get_CommentsAsTable(string whereSql,string orderBy)
		{
		   Comments_DAL obj = new Comments_DAL();
		   if (string.IsNullOrEmpty(orderBy)) orderBy = "";
		   if (string.IsNullOrEmpty(whereSql)) whereSql = "";
		   return obj.Get_CommentsAsTable(whereSql,orderBy);
		}

		public static Comments Get_Comments_ByID(System.Int32 Com_ID)
		{
		   Comments_DAL obj = new Comments_DAL();
		   return obj.Get_Comments_ByID(Com_ID);
		}

		public static void Delete_Comments(Comments temp)
		{
		   Comments_DAL obj = new Comments_DAL();
		   obj.Delete_Comments( temp);
		}

		public static void Delete_Comments_Where(string whereSql)
		{
		   Comments_DAL obj = new Comments_DAL();
		   if (string.IsNullOrEmpty(whereSql)) whereSql = "";
		   obj.Delete_Comments_Where( whereSql );
		}

		public static void Insert_Comments(Comments temp)
		{
		   Comments_DAL obj = new Comments_DAL();
		   obj.Insert_Comments(temp);
		}

		public static void Update_Comments(Comments temp)
		{
		   Comments_DAL obj = new Comments_DAL();
		   obj.Update_Comments(temp);
		}

#endregion
 }
}
